//
//  UIButton+Addition.m
//  PFDevelopKit
//
//  Created by 原鹏飞 on 2018/10/29.
//  Copyright © 2018 ypf. All rights reserved.
//

#import "UIButton+Addition.h"

@implementation UIButton (Addition)

+ (UIButton *)pf_buttonWithTitle:(NSString *)title andTitleColor:(UIColor *)titleColor {
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
    [btn setTitle:title forState:UIControlStateNormal];
    [btn setTitleColor:titleColor forState:UIControlStateNormal];
    
    return btn;
}


+ (UIButton *)pf_buttonWithTitle:(NSString *)title andTitleColor:(UIColor *)titleColor andBorderWidth:(CGFloat)borderWidth andBorderColor:(CGColorRef)borderColor  {
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
    [btn setTitle:title forState:UIControlStateNormal];
    [btn setTitleColor:titleColor forState:UIControlStateNormal];
    [btn.layer setBorderColor:borderColor];
    [btn.layer setBorderWidth:borderWidth];
    
    return btn;
}

@end
